package com.xxx.model.user.req;

import com.xxx.common.model.ReqUserId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @author Flying
 * @Description
 * @date 18:48 2018-08-27
 **/
@Data
@ApiModel("修改用户数据请求参数")
@EqualsAndHashCode(callSuper =false)
public class ReqUpdateUserInfoVO extends ReqUserId {

    @ApiModelProperty("昵称")
    @Size(min=1,message = "昵称输入不合法")
    private String nickName;

    @ApiModelProperty("性别")
    private Integer gender;

    @ApiModelProperty("头像")
    @Size(min=1,message = "头像地址不合法")
    private String headImagePath;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("生日")
    private Date birthday;

    @ApiModelProperty("县级ID")
    @Range(min = 0, message = "县级ID不合法")
    private Long countyArealId;

    @ApiModelProperty("市级ID")
    @Range(min = 0,message = "市级ID不合法")
    private Long cityArealId;

    @ApiModelProperty("省级ID")
    @Range(min = 0,message = "省级I不合法")
    private Long ProvinceAreaId;

}
